<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/wikidevidepackage',
    'namespace' => 'Beerus\\Modules\\Wikidevidepackage\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    //打标签分包相关
    $router->get('/index/{step}', 'WikiDevidePackageController@index');//任务列表
    $router->post('/index/receivedpackage', 'WikiDevidePackageController@receivePackage');//领取任务
    $router->get('/index/continuepackage/{package_id}', 'OperatePackageController@continuePackage');//领取任务
    $router->post('/index/submitpackage', 'WikiDevidePackageController@submitPackage');//提交任务
    $router->get('/index/continuepackage/{package_id}/{note_id}', 'OperatePackageController@admRemarkPop');//pic备注弹窗
    $router->put('/index/continuepackage/{package_id}/{note_id}/{id}', 'OperatePackageController@editPicRemark');//pic保存备注
    $router->put('/index/{tab_id}/{id}', 'WikiDevidePackageController@editRemark');//pic保存备注
    $router->post('/index/reeditpackage', 'WikiDevidePackageController@reEditPackage');//任务打回修改
    $router->post('/index/finishpackage', 'WikiDevidePackageController@finishPackage');//任务标记完成
    $router->get('/exportdata', 'WikiDevidePackageController@exportData');//导出数据
    $router->post('/index/repairpackage', 'WikiDevidePackageController@repairPackage');
    $router->put('/index/{tab_id}', 'WikiDevidePackageController@collocation');//配置
});